/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ecom.beans.store;

import ecom.beans.account.*;
import ecom.beans.address.*;

import java.io.Serializable;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Tian
 */
@Remote
public interface StoreEntityFacadeRemote {

    public StoreEntity addStore(String storeName,
                                int seatsNumber,
                                int deliverymenNumber,
                                AddressEntity address,
                                AccountEntity account);
    
    //public StoreEntity addStore(String name,String address,AccountEntity account);
    
    public List<StoreEntity> getAllStores();

    public StoreEntity getStoreById(int id);
    
    public StoreEntity getStoreByName(String name);
    
    public StoreEntity removeStoreById(int restoId);
    
    public List<StoreEntity> removeAllStore();
    
    public StoreEntity removeStoreByName(String name);
    
    //void edit(StoreEntity storeEntity);


    

}
